package com.chinasoft.reposearch.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@NoArgsConstructor
@AllArgsConstructor
@Data
public class ResponseResult implements Serializable {
    private Integer code;
    private String Message;
    private Object data;


    public static ResponseResult success(Object object) {
        return new ResponseResult(
                31200,
                "ok",
                object
        );
    }
}
